package com.cb.vodtest;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.profile.DefaultProfile;
import org.apache.commons.lang.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cb
 * @version 1.0
 * @date 2020/6/25 15:15
 */
public class InitObject {
    public static void main(String[] args) {
        List list = new ArrayList<>();
        list.add("11");
        list.add("22");
        list.add("133");
        String join = StringUtils.join(list, ",");
        System.out.println(join);
    }
    public static DefaultAcsClient initVodClient(String accessKeyId, String accessKeySecret) throws ClientException {
        String regionId = "cn-shanghai";  // 点播服务接入区域
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        DefaultAcsClient client = new DefaultAcsClient(profile);
        return client;
    }
}
